DISCUSSION
The
ATSUSetFontFeatures function sets one or more font feature(s). Unset font features retain their font-defined default values. To set a particular font feature, you must specify both the feature type and selector.
The order that
ATSUSetFontFeatures sets font features depends on the font-defined order, not the chronological order in which they were set in a call to
ATSUSetFontFeatures.
Prior to ATSUI 1.2,
ATSUSetFontFeature would not remove contradictory font features. You are responsible for maintaining your own list and remove contradictory settings when they occur. Beginning with ATSUI 1.2,
ATSUSetFontFeatures will remove contradictory font features.
VERSION NOTES
Available beginning with ATSUI 1.0. Beginning with ATSUI 1.2, if you set contradictory font features,
ATSUSetFontFeatures will remove contradictory features. Prior to ATSUI 1.2, you should maintain a list of font feature settings and removing contradictory settings when they occur.